<?php
namespace app\http\services;
/**
 * @Author: hpp
 * @Date:   2018-12-04 12:40:01
 * @Last Modified by:   hpp
 * @Last Modified time: 2018-12-04 17:03:05
 */
use think\worker\Server;

class Worker extends Server
{
	protected $socket = 'websocket://0.0.0.0:2346';
	public function onMessage($connection,$data)
	{
		$connection->count = 4;
		$connection->send('receive: '.$data);
	}
}